//
//  Individual.cpp
//  symbrion
//
//  Created by Berend Weel on 4/16/13.
//  Copyright (c) 2013 Berend Weel. All rights reserved.
//

#include "Individual.h"

bool individualComparep(Individual *one, Individual *other){
    if(one->hasFitness && other->hasFitness){
        return one->fitness < other->fitness;
    }else{
        return false;
    }
}

bool individualCompare(const Individual &one, const Individual &other){
    if(one.hasFitness && other.hasFitness){
        return one.fitness < other.fitness;
    }else{
        return false;
    }
}